<nav class="container">
    <a href="index.php" class="navbar-brand text-hide">景荣工业集团</a>

    <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <div class="navbar-collapse collapse bs-navbar-collapse">
        <ul class="nav navbar-nav">
            <li><a href="index.php">首页</a></li>
            {[if $smarty.session.username eq '']}
            <li><a href="?do=User.mac">开始上网</a></li>
            {[else]}
            
            <li {[if $nav.equipment ]}class="nav-current" role="presentation"{[/if]}>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false">
                    用户中心 <span class="caret"></span>
                </a>

                <ul class="dropdown-menu" role="menu">
                	<li><a href="?do=User.layout">我的信息</a></li>
                    <li><a href="?do=Mac.layout">我的设备</a></li>
                    <li><a href="?do=User.edit">更新资料</a></li>
                    <li><a href="?do=User.password">修改密码</a></li>
                </ul>
            </li>
            
            <li {[if $nav.equipment ]}class="nav-current" role="presentation"{[/if]}>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false">
                    上网记录 <span class="caret"></span>
                </a>
                
                <ul class="dropdown-menu" role="menu">
                    <li><a href="?do=Log.layout">上网记录</a></li>
                    <li><a href="?do=Log.online">在线设备</a></li>
                </ul>
            </li>
            
            <li {[if $nav.equipment ]}class="nav-current" role="presentation"{[/if]}>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false">
                    流量转让 <span class="caret"></span>
                </a>

                <ul class="dropdown-menu" role="menu">
                    <li><a href="?do=Data.layout">转让明细</a></li>
                    <li><a href="?do=Data.transfer">流量转让</a></li>
                </ul>
            </li>
            
            <li><a href="?do=Log.logout&{[$p2]}">退出</a></li>
            {[/if]}

            <li><a href="?do=Portal.about">关于我们</a></li>
            <li><a href="?do=Portal.contact">联系我们</a></li>
        </ul>
    </div>
</nav>